package com.yazi.mxz.server.response;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yazi.mxz.common.entity.beans.Shopping;
import com.yazi.mxz.server.response.mixin.ShoppingMixIn;





/**
 * 单个购物车商品响应对象
 * @author mo_yq5
 * @date 2014-5-14
 */
public class ShoppingAddResponse extends ComResponse implements  DataSuccess<Shopping>, DataFail<Shopping>{
	@JsonSerialize(as=ShoppingMixIn.class)
	private Shopping failData;
	@JsonSerialize(as=ShoppingMixIn.class)
	private Shopping successData;
	
	@Override
	public void setFailData(Shopping t) {
		this.failData = t;
	}

	@Override
	public Shopping getFailData() {
		return failData;
	}

	@Override
	public void setSuccessData(Shopping t) {
		this.successData = t;
	}

	@Override
	public Shopping getSuccessData() {
		return successData;
	}

}
